package org.jeecg.modules.app.entity;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException;

/**
 * @Description: 移动用户
 * @Author: jeecg-boot
 * @Date:   2024-07-19
 * @Version: V1.0
 */
@Data
@TableName("base_user")
@ApiModel(value="base_user对象", description="移动用户")
public class BaseUser implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
	/**用户类型*/
	@Excel(name = "用户类型", width = 15)
    @ApiModelProperty(value = "用户类型")
    private java.lang.String userType;
	/**人员信息*/
	@Excel(name = "人员信息", width = 15, dictTable = "base_person", dicText = "real_name", dicCode = "id")
	@Dict(dictTable = "base_person", dicText = "real_name", dicCode = "id")
    @ApiModelProperty(value = "人员信息")
    private java.lang.String personId;
	/**登录名*/
	@Excel(name = "登录名", width = 15)
    @ApiModelProperty(value = "登录名")
    private java.lang.String userName;
	/**真实姓名*/
	@Excel(name = "真实姓名", width = 15)
    @ApiModelProperty(value = "真实姓名")
    private java.lang.String realName;
	/**昵称*/
	@Excel(name = "昵称", width = 15)
    @ApiModelProperty(value = "昵称")
    private java.lang.String nickName;
	/**身份证号码*/
	@Excel(name = "身份证号码", width = 15)
    @ApiModelProperty(value = "身份证号码")
    private java.lang.String idCardNo;
	/**email*/
	@Excel(name = "email", width = 15)
    @ApiModelProperty(value = "email")
    private java.lang.String email;
	/**联系电话*/
	@Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private java.lang.String phone;
	/**密钥*/
	@Excel(name = "密钥", width = 15)
    @ApiModelProperty(value = "密钥")
    private java.lang.String salt;
	/**密码*/
	@Excel(name = "密码", width = 15)
    @ApiModelProperty(value = "密码")
    private java.lang.String password;
	/**所属单位*/
	@Excel(name = "所属单位", width = 15, dictTable = "base_company", dicText = "company_name", dicCode = "id")
	@Dict(dictTable = "base_company", dicText = "company_name", dicCode = "id")
    @ApiModelProperty(value = "所属单位")
    private java.lang.String companyId;
	/**账户类型*/
	@Excel(name = "账户类型", width = 15, dicCode = "dict_account_type")
	@Dict(dicCode = "dict_account_type")
    @ApiModelProperty(value = "账户类型")
    private java.lang.Integer accountType;
	/**用户状态*/
	@Excel(name = "用户状态", width = 15, dicCode = "dict_mobile_user_status")
	@Dict(dicCode = "dict_mobile_user_status")
    @ApiModelProperty(value = "用户状态")
    private java.lang.Integer status;
	/**头像*/
	@Excel(name = "头像", width = 15)
    @ApiModelProperty(value = "头像")
    private java.lang.String avatar;
	/**附加信息*/
	@Excel(name = "附加信息", width = 15)
    @ApiModelProperty(value = "附加信息")
    private java.lang.String attach;
	/**性别*/
	@Excel(name = "性别", width = 15, dicCode = "sex")
	@Dict(dicCode = "sex")
    @ApiModelProperty(value = "性别")
    private java.lang.String gender;
	/**生日*/
	@Excel(name = "生日", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "生日")
    private java.util.Date birthday;
	/**排序*/
	@Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
    private java.lang.Integer sort;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private java.util.Date updateTime;
	/**删除标识*/
	@Excel(name = "删除标识", width = 15)
    @ApiModelProperty(value = "删除标识")
    @TableLogic
    private java.lang.Integer delFlag;
	/**上级用户*/
	@Excel(name = "上级用户", width = 15, dictTable = "base_user", dicText = "real_name", dicCode = "id")
	@Dict(dictTable = "base_user", dicText = "real_name", dicCode = "id")
    @ApiModelProperty(value = "上级用户")
    private java.lang.String pid;
	/**是否有子节点*/
	@Excel(name = "是否有子节点", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否有子节点")
    private java.lang.String hasChild;
}
